
Pod::Spec.new do |s|
  s.name             = 'CJPack'
  s.version          = '1.1.16'
  s.summary          = 'A short description of CJPack.'

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/giteecjw0124/cjpack'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'giteecjw0124' => 'chenjingwei0124@foxmail.com' }
  s.source           = { :git => 'https://gitee.com/giteecjw0124/cjpack.git', :tag => s.version.to_s }

  s.ios.deployment_target = '13.0'
  s.swift_version = '5.0'
  s.frameworks = 'UIKit', 'Foundation', 'CoreText', 'QuartzCore', 'CFNetwork'
  
  s.subspec 'Core' do |s|
    s.source_files = 'Classes/Core/**/*.{h,m,swift}'
  end
  
  s.subspec 'Exten' do |s|
    s.dependency 'CJPack/Core'
    s.source_files = 'Classes/Exten/**/*.{h,m,swift}'
  end
  
  s.subspec 'Escrow' do |s|
    s.dependency 'CJPack/Core'
    s.dependency 'CJPack/Exten'
    s.dependency 'SDWebImage'
    s.dependency 'SnapKit'
    s.dependency 'MJRefresh'
    s.source_files = 'Classes/Escrow/**/*.{h,m,swift}'
    s.resources = ['Classes/Escrow/**/*.xcassets']
  end
  
  s.subspec 'Skin' do |s|
    s.dependency 'CJPack/Core'
    s.dependency 'CJPack/Exten'
    s.source_files = 'Classes/Skin/**/*.{h,m,swift}'
  end
  
  s.subspec 'Frame' do |s|
    s.dependency 'CJPack/Core'
    s.dependency 'CJPack/Exten'
    s.dependency 'CJPack/Skin'
    s.source_files = 'Classes/Frame/**/*.{h,m,swift}'
  end
  
  s.subspec 'Vendor' do |s|
  
    s.subspec 'CJCharts' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJChartsView/**/*.{h,m,swift}'
    end
      
    s.subspec 'CJHttpManager' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.dependency 'CJPack/Escrow'
      s.dependency 'CJPack/Vendor/CJHudView'
      s.dependency 'Alamofire'
      s.source_files = 'Classes/Vendor/CJHttpManager/**/*.{h,m,swift}'
    end
      
    s.subspec 'CJHudView' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJHudView/**/*.{h,m,swift}'
      s.resources = ['Classes/Vendor/CJHudView/**/*.xcassets']
    end
    
    s.subspec 'CJLocalCenter' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJLocalCenter/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJLoseCodable' do |s|
      s.source_files = 'Classes/Vendor/CJLoseCodable/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJMenuView' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJMenuView/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJPhotoPicker' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJPhotoPicker/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJPopup' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJPopupView/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJPrint' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJPrint/**/*.{h,m,swift}'
    end
    
    s.subspec 'CJScanView' do |s|
      s.dependency 'CJPack/Core'
      s.dependency 'CJPack/Exten'
      s.source_files = 'Classes/Vendor/CJScanView/**/*.{h,m,swift}'
      s.resources = ['Classes/Vendor/CJScanView/**/*.xcassets']
    end
    
    s.subspec 'CJCRC' do |s|
      s.source_files = 'Classes/Vendor/CJCRC/**/*.{h,m,swift}'
    end
    
  end
  
end

